CC = g++
SRC = ./src

run :src/test test/3.data test/4.data
	src/test
src/test :test/3.data test/4.data src/test.o src/Multigrid.o
	g++ -o src/test src/test.o src/Multigrid.o -llapacke
test/3.data :test/infile
	test/infile
test/4.data :test/infile
	test/infile
test/infile :test/infile.cpp
	g++ -o test/infile test/infile.cpp
src/test.o :src/test.cpp src/Multigrid.h
	g++ -c ./src/test.cpp -o ./src/test.o
src/Multigrid.o :src/Multigrid.cpp src/Multigrid.h
	g++ -c src/Multigrid.cpp -o src/Multigrid.o

.PHONY : clean
clean :
	rm -f test/infile src/test src/*.o 
realclean :
	make clean
	rm -f run/*.data test/*.data
